package exercise.exer1;

import java.util.Scanner;

public class excise1 {
    public static void main(String[] args){
        String []weeks=new String[]{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入数值（1-7）:");
        int day=scan.nextInt();
        if(day<1 || day>7)
            System.out.println("输入有误！");
        else
            System.out.println(weeks[day-1]);
        scan.close();
    }
}
